<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%><body>
<div class="wrap">
    <div class="nav">
        <div class="return">
            <a href="${requestScope.FPWEB.rootPath }/user/bindcard/list${requestScope.FPWEB.urlStuff}">返回上一级</a>
        </div>
    </div>
    <div class="h_a">用户银行卡信息</div>
    <div class="table_full">
        <table width="100%">
            <tbody>
            <tr>
                <th width="100">用户ID</th>
                <td>${model.user_id}</td>
            </tr>
            <tr>
                <th width="100">真实姓名</th>
                <td>${model.id_name}</td>
            </tr>
            <tr>
                <th width="100">身份证号码</th>
                <td>${model.id_number}</td>
            </tr>
            <tr>
                <th width="100">银行卡号</th>
                <td>${model.bank_card_number}</td>
            </tr>
            <tr>
                <th width="100">所属银行</th>
                <td>${model.bank_name}</td>
            </tr>
            <tr>
                <th width="100">银行预留手机号</th>
                <td>${model.bank_mobile}</td>
            </tr>
            </tbody>
        </table>
    </div>

    <div class="h_a"> 更换银行卡信息</div>
    <div class="table_list">
        <form action="${requestScope.FPWEB.rootPath }/user/bindcard/submit${requestScope.FPWEB.urlStuff}" method="get" autocomplete="off">
            <table width="100%">
                <tr>
                    <td width="100">真实姓名</td>
                    <td>
                        <input name="user_id" type="hidden" value="${model.user_id}">
                        <input name="id_name" type="text" class="input length_3 mr10" value="${model.id_name}" disabled>
                    </td>
                </tr>
                <tr>
                    <td>身份证号</td>
                    <td><input name="id_number" type="text" class="input length_3 mr10" value="${model.id_number}" disabled></td>
                </tr>
                <tr>
                    <td>银行卡号</td>
                    <td><input name="bank_card_number" type="text" class="input length_3 mr10" value="${model.bank_card_number}">（解绑请留空）</td>
                </tr>
                <tr>
                    <td>所属银行</td>
                    <td>
                        <select name="bank_id" class="mr10">
                            <option value="">请选择</option>
                            <c:forEach items="${bankList}" var="item">
                                <option value="${item.bank_id}"  <c:if test="${model.bank_id==item.bank_id }">  selected="selected" </c:if>>${item.bank_name}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>预留手机号</td>
                    <td><input name="bank_mobile" type="text" class="input length_3 mr10" value="${model.bank_mobile}">（解绑请留空）</td>
                </tr>
            </table>
            <button type="submit" class="btn btn_submit length_2">更换银行卡</button>

        </form>
    </div>

    <div class="h_a"> 银行卡变更历史记录</div>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td>用户ID</td>
                <td>真实姓名</td>
                <td>身份证号</td>
                <td>银行卡号</td>
                <%--<td>所属银行</td>--%>
                <td>预留手机号</td>
                <td>开户行地址</td>
                <td>绑卡时间</td>
            </tr>
            </thead>
            <tbody id="J_word_list">
            <c:forEach items="${bankHistoryList }" var="item" >
                <tr>
                    <td>${item.user_id}</td>
                    <td>${item.id_name}</td>
                    <td>${item.id_number}</td>
                    <td>${item.bank_card_number}</td>
                    <%--<td>${item.bank_name}</td>--%>
                    <td>${item.bank_mobile}</td>
                    <td>${item.strMap.address}</td>
                    <td>${item.strMap.create_time}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>

</div>
<script>
    YJD.use('AppAdminCommon');
</script>
</body>